<?php

namespace app\models\dao;

use Yii;

/**
 * This is the model class for table "{{%role}}".
 *
 * @property integer $id
 * @property string $name
 * @property integer $type
 * @property integer $status
 * @property integer $flag
 * @property string $description
 * @property string $create_time
 * @property string $update_time
 */
class Role extends \app\common\PopToolActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%role}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type', 'status', 'flag'], 'integer'],
            [['description'], 'string'],
            [['create_time', 'update_time'], 'safe'],
            [['name'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '用户组ID',
            'name' => '用户组名称',
            'type' => '账号类型：0、系统管理员，1、酒店管理员',
            'status' => '该用户组是否显示：0为不显示，1为显示',
            'flag' => '数据状态',
            'description' => '描述',
            'create_time' => '创建时间',
            'update_time' => '更新时间',
        ];
    }
}
